//
//  MHMyselfHeaderView.m
//  ManHua
//
//  Created by 江子安 on 15/10/27.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHMyselfHeaderView.h"
#import "UIImage+Addiction.h"

@implementation MHMyselfHeaderView




- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _iconImg = [[UIImageView alloc]initWithFrame:CGRectMake(15, 40, 40, 40)];
        _iconImg.image = [UIImage circleImageWithImage:[UIImage imageNamed:@"iconfont-suini-people-1"] borderWidth:0 borderColor:[UIColor clearColor]] ;
        [self addSubview:_iconImg];
        
        _loginOrNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(70, 40, 150, 25)];
        _loginOrNameLabel.text = @"登录 / 注册";
        _loginOrNameLabel.textColor = [UIColor colorWithRed:0.400 green:1.000 blue:0.400 alpha:1.000];
        [self addSubview:_loginOrNameLabel];
        
        _descLabel = [[UILabel alloc]initWithFrame:CGRectMake(70, 65, 150, 20)];
        _descLabel.text = @"登陆后有很多好处哦~";
        _descLabel.font = [UIFont systemFontOfSize:10];
        [self addSubview:_descLabel];
        
        _loginBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _loginBtn.frame = CGRectMake(0, 40, self.bounds.size.width, self.bounds.size.height - 60);
        [self addSubview:_loginBtn];
        
        
    }
    return self;
}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
